package cn.javabb.core.entity.pay;

import cn.javabb.core.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Author javabb
 * @Date 2019/8/12 0012 下午 3:11
 * @Desc
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(name = "pay_order")
public class OrderDO extends BaseEntity {

    @Id
    @GeneratedValue(generator = "JDBC")
    private String orderId;
    private String payNumber; //支付订单号，
    private Integer userId;
    private Integer goodsId;
    private String payType;
    private Double money;
    private Double realMoney;
    private Integer state; //0 支付成功 1未支付 2 取消支付 3支付超时
    @Transient
    private String userName;
    @Transient
    private String qr;
    @Transient
    private String goodsName;
    @Transient
    private Integer gold;
    @Transient
    private Integer goodsType;
}
